package com.qlyl.modules.information.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qlyl.modules.information.entity.Consumers;
import com.qlyl.modules.information.entity.EthTransaction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EthTransactionMapper extends BaseMapper<EthTransaction> {

    int updateStatusOnSuccess(@Param("transactionHash") String transactionHash);

    IPage<EthTransaction> selectAndConsumers(Page<?> page, @Param("userId") String userId);
}
